/*
 * #%L
 * SwiftUICommonUtilities
 * $Id:$
 * $HeadURL:$
 * %%
 * Copyright (C) 2011 - 2012 Linkwithweb
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public 
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/gpl-3.0.html>.
 * #L%
 */
/**
 * 
 */
package com.linkwithweb.products.swiftui.dataobject;

import java.io.Serializable;

/*********************************************************************************
 * DROP TABLE IF EXISTS `automata`.`frm_application`;
 * CREATE TABLE `automata`.`frm_application` (
 * `UNIQUE_KEY` int(10) unsigned NOT NULL AUTO_INCREMENT,
 * `APP_ID` varchar(45) NOT NULL,
 * `APP_NAME` varchar(45) NOT NULL,
 * `APP_DESCRIPTION` varchar(45) NOT NULL,
 * `DEPARTMENT_ID` varchar(45) NOT NULL,
 * `DATASOURCE_TYPE` varchar(45) NOT NULL COMMENT 'ORACLE/MYSQL/DB2',
 * `DB_URL` varchar(120) NOT NULL,
 * `DB_DRIVER` varchar(140) NOT NULL,
 * `DB_USERNAME` varchar(45) NOT NULL,
 * `DB_PASSWORD` varchar(45) NOT NULL,
 * `IS_ACTIVE` tinyint(1) NOT NULL,
 * `IDENTIFIER` varchar(45) NOT NULL,
 * `IDENTIFIER_ROLE` varchar(45) NOT NULL,
 * `CREATED_BY` int(10) unsigned NOT NULL,
 * `CREATED_DATE` datetime NOT NULL,
 * `MODIFIED_BY` int(10) unsigned NOT NULL,
 * `MODIFIED_DATE` datetime NOT NULL,
 * `APP_CONTEXT_NAME` varchar(45) NOT NULL,
 * PRIMARY KEY (`UNIQUE_KEY`)
 * ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
 **************************************************************************************** 
 * @author ashwin kumar
 * 
 */
public class FrameworkApplication extends BaseDataObject  implements Serializable {
	private static final long serialVersionUID = 56542432342L;

	private long uniqueKey = -1;
	private String appId = "";
	private String appName = "";
	private String appDescription = "";
	private String departmentId = "";
	private String datasourceType = "";
	private String dbUrl = "";
	private String dbDriver = "";
	private String dbUsername = "";
	private String dbPassword = "";
	private String appContextName = "";
	/**
	 * @return the uniqueKey
	 */
	public long getUniqueKey() {
		return uniqueKey;
	}
	/**
	 * @param uniqueKey the uniqueKey to set
	 */
	public void setUniqueKey(long uniqueKey) {
		this.uniqueKey = uniqueKey;
	}
	/**
	 * @return the appId
	 */
	public String getAppId() {
		return appId;
	}
	/**
	 * @param appId the appId to set
	 */
	public void setAppId(String appId) {
		this.appId = appId;
	}
	/**
	 * @return the appName
	 */
	public String getAppName() {
		return appName;
	}
	/**
	 * @param appName the appName to set
	 */
	public void setAppName(String appName) {
		this.appName = appName;
	}
	/**
	 * @return the appDescription
	 */
	public String getAppDescription() {
		return appDescription;
	}
	/**
	 * @param appDescription the appDescription to set
	 */
	public void setAppDescription(String appDescription) {
		this.appDescription = appDescription;
	}
	/**
	 * @return the departmentId
	 */
	public String getDepartmentId() {
		return departmentId;
	}
	/**
	 * @param departmentId the departmentId to set
	 */
	public void setDepartmentId(String departmentId) {
		this.departmentId = departmentId;
	}
	/**
	 * @return the datasourceType
	 */
	public String getDatasourceType() {
		return datasourceType;
	}
	/**
	 * @param datasourceType the datasourceType to set
	 */
	public void setDatasourceType(String datasourceType) {
		this.datasourceType = datasourceType;
	}
	/**
	 * @return the dbUrl
	 */
	public String getDbUrl() {
		return dbUrl;
	}
	/**
	 * @param dbUrl the dbUrl to set
	 */
	public void setDbUrl(String dbUrl) {
		this.dbUrl = dbUrl;
	}
	/**
	 * @return the dbDriver
	 */
	public String getDbDriver() {
		return dbDriver;
	}
	/**
	 * @param dbDriver the dbDriver to set
	 */
	public void setDbDriver(String dbDriver) {
		this.dbDriver = dbDriver;
	}
	/**
	 * @return the dbUsername
	 */
	public String getDbUsername() {
		return dbUsername;
	}
	/**
	 * @param dbUsername the dbUsername to set
	 */
	public void setDbUsername(String dbUsername) {
		this.dbUsername = dbUsername;
	}
	/**
	 * @return the dbPassword
	 */
	public String getDbPassword() {
		return dbPassword;
	}
	/**
	 * @param dbPassword the dbPassword to set
	 */
	public void setDbPassword(String dbPassword) {
		this.dbPassword = dbPassword;
	}
	/**
	 * @return the appContextName
	 */
	public String getAppContextName() {
		return appContextName;
	}
	/**
	 * @param appContextName the appContextName to set
	 */
	public void setAppContextName(String appContextName) {
		this.appContextName = appContextName;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((appId == null) ? 0 : appId.hashCode());
		result = prime * result + ((departmentId == null) ? 0 : departmentId.hashCode());
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		FrameworkApplication other = (FrameworkApplication) obj;
		if (appId == null) {
			if (other.appId != null)
				return false;
		} else if (!appId.equals(other.appId))
			return false;
		if (departmentId == null) {
			if (other.departmentId != null)
				return false;
		} else if (!departmentId.equals(other.departmentId))
			return false;
		return true;
	}
	
	
	
}
